/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package com.yxw.yxnet_cd_center.common.enums;

/**
 * @author Administrator   PICTURE,SOUND,VEDIO,MULTITYPE   picture,sound,vedio,multitype
 */
public enum ContentTypeEnum {
    PICTURE("picture", "图片"),
    SOUND("sound", "声音"),
    VEDIO("vedio", "视频"),
    MULTITYPE("multitype", "富文本"),
    WORKFLOW("workflow", "工单");


    ContentTypeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getDesByCode(String code) {
        for (ContentTypeEnum statusEnum : ContentTypeEnum.values()) {
            if (statusEnum.getCode().equals(code)) {
                return statusEnum.getDesc();
            }
        }
        return code;
    }

    private String code;
    private String desc;


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
